<?php slot('title',sprintf('Rubicon - Waste & Recycling Management - Invoices'))?>
<?php //include(sfConfig::get('sf_lib_dir').'/FusionCharts/FusionCharts.php') ?>
<div id="logo-client">
    <?php if ($account->getAccountLogoUrl() != "") : ?>
      <img src="/images/<?php echo $account->getAccountLogoUrl() ?>" alt="" />
    <?php else : ?>
      <?php if ($account->Account->getAccountLogoUrl() != "") : ?>
        <img src="/images/<?php echo $account->Account->getAccountLogoUrl() ?>" alt="" />
      <?php else : ?>
        <img src="/images/not_available.png" width="160" height="72" alt="" />
      <?php endif; ?>
    <?php endif; ?>
</div>
<div id="info-client">
	<h1>Location:</h1>
    <p><?php echo strtoupper($account->getServiceAddress()) ?>
        <?php echo $account->getServiceCity() ? strtoupper($account->getServiceCity()).',' : '' ?> 
                <?php echo strtoupper($account->getServiceState()) ?>
                        <?php echo strtoupper($account->getServiceZip()) ?>
    <?php //$q = new sfWidgetFormChoice(array('choices'  => Doctrine::getTable('Account')->getChildsAccountQuery($account->getAccountId())->execute(),'multiple' => true,));
    //echo $q->render('j',array('name' => 'locations','onClick' => 'doThis();')); ?>
    </p>
</div>
<div id="submenu">
    <a href="<?php echo url_for('invoice/index') ?>" >View Invoices</a> Make Payment Reporting
</div>
<div id="blank-space"></div>
<div id="progress" >
  <p><img id="progress_image" src="/images/ajax-loader.gif" alt=""/>
  Loading
  </p>
</div>

<div id="listing">
  <?php include_partial('invoice/locationList', array('locations' => $locations, 'pager' => $pager,'account' => $account, 'childs_menu' => $childs_menu)) ?>
</div>

<?php  ?>
<div id="space-graph">
  <div id="selector-horizontal">
    
    <div id="selector-list">
        <select name="locations_select_menu" size="3" multiple id="locations_select_menu" >
          <?php foreach ($childs_menu as $account) : ?>
            <option value="<?php echo $account->getAccountId(); ?>" selected="selected"><?php echo $account->getAccountName(); ?></option>
          <?php endforeach; ?>
        </select>
		 <?php //$q = new sfWidgetFormChoice(array('choices'  => Doctrine::getTable('Account')->getChildsAccountQuery($account->getAccountId())->execute(),'multiple' => true,));
    //echo $q->render('locations_select_menu',array('name' => 'locations_select')); ?>
      <input name="load_chart" id="load_chart" type="button" onclick="updateLocationsChart();" value="Update Chart" class="button" />
    </div>
    
  </div>
<div id="progress_chart" >
  <p><img id="progress_image_chart" src="/images/ajax-loader.gif" alt=""/>
  Loading Chart
  </p>
</div>
  <?php include_partial('invoice/locationsChart', array('strXML' => $strXML, 'month' => '6', 'my' => '1', 'corporate' => '1')); ?>
</div>
<?php  ?>